{% extends "account/base.html" %}
{% block content %}

<div class="flex-center">
    <div class="container">
        <div class="flex-center">
            <div class="unit-1-2 unit-1-on-mobile">
                <h1><a href="{% url 'index' %}">Django Auth Example</a></h1>
                <h3>注册</h3>
                <form class="form" action="{% url 'account_signup' %}" method="post">
                    {% csrf_token %} {{ form.as_p }}
                    <button type="submit" class="btn btn-primary btn-block">注册</button>
                    <input type="hidden" name="next" value="{{ next }}"/>
                </form>
                <div class="flex-center top-gap text-small">
                    <a href="{% url 'account_login' %}">已有账号登录</a>
                </div>
            </div>
        </div>
    </div>
</div>

{% endblock %}